package com.yuyou.fn.settlement.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 帐户余额变更记录
 *
 */
@TableName(value = "balance_change")
public class BalanceChange implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<BalanceChange> createExample(){
		return new Example<BalanceChange>(BalanceChange.class);
	}

	/**  */
	@TableId(value = "balance_change_id")
	private Long balanceChangeId;

	/**  */
	@TableField(value = "main_account_id")
	private Long mainAccountId;

	/** 发生金额 */
	private BigDecimal amount;

	/** 备注 */
	private String remark;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	public Long getBalanceChangeId() {
		return this.balanceChangeId;
	}

	public void setBalanceChangeId(Long balanceChangeId) {
		this.balanceChangeId = balanceChangeId;
	}

	public Long getMainAccountId() {
		return this.mainAccountId;
	}

	public void setMainAccountId(Long mainAccountId) {
		this.mainAccountId = mainAccountId;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
